<template>
  <div>
    <el-tag v-permission="['ba']">拥有权限 ba 可见 按钮a</el-tag>
    <el-tag v-permission="['bb']">拥有权限 bb 可见 按钮b</el-tag>
    <!-- <el-tab-pane v-if="checkPermission(['admin'])" label="Admin">Admin can see this</el-tab-pane> -->
  </div>
</template>

<script>
  import store from '@/store'
  import permission from '@/directive/permission/index.js' // 权限判断指令
  export default {
    methods: {},
    directives: {
      permission
    },
    mounted() {
      console.log(store)
      console.log(permission)
    }
  }
</script>
